export default [
  {
    path: '/',
    component: () => import(/* webpackChunkName: "home" */ '@/views/layout/index'),
    redirect: { name: 'home' },
    children: [
      /**
       * 品牌分析
       */
      {
        path: 'brandAnalysis',
        component: () => import(/* webpackChunkName: "BrandAnalysis" */ '@/views/BrandAnalysis/index'),
        name: 'BrandAnalysis',
        meta: { title: '品牌分析', icon: 'sider-icon sider-icon-dashboard' },
        children: [
          {
            path: 'market',
            name: 'BrandAnalysis-market',
            component: () => import(/* webpackChunkName: "BrandAnalysis" */ '@/views/BrandAnalysis/Market/index'),
            meta: { pathId: 1, title: '品牌规模' }
          },
          {
            path: 'trend',
            name: 'BrandAnalysis-trend',
            component: () => import(/* webpackChunkName: "BrandAnalysis" */ '@/views/BrandAnalysis/Trend/index'),
            meta: { pathId: 2, title: '品牌趋势' }
          },
          {
            path: 'shop',
            name: 'BrandAnalysis-shop',
            component: () => import(/* webpackChunkName: "BrandAnalysis" */ '@/views/BrandAnalysis/Shop/index'),
            meta: { pathId: 2, title: '品牌店铺排行' }
          },
          {
            path: 'product',
            name: 'BrandAnalysis-product',
            component: () => import(/* webpackChunkName: "BrandAnalysis" */ '@/views/BrandAnalysis/Product/index'),
            meta: { pathId: 2, title: '品牌宝贝排行' }
          }
        ]
      },
      /**
       * 品牌舆情
       */
      {
        path: 'brandSensation',
        component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/index'),
        name: 'BrandSensation',
        meta: { title: '品牌舆情' },
        children: [
          {
            path: 'overview',
            name: 'BrandSensation-overview',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Overview/index'),
            meta: { pathId: 1, title: '舆情概况' }
          },
          {
            path: 'shop',
            name: 'BrandSensation-shop',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Shop/index'),
            meta: { pathId: 2, title: '店铺舆情分析' }
          },
          {
            path: 'cat',
            name: 'BrandSensation-cat',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Cat/index'),
            meta: { pathId: 2, title: '类目舆情分析' }
          },
          {
            path: 'product',
            name: 'BrandSensation-product',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Product/index'),
            meta: { pathId: 2, title: '宝贝舆情分析' }
          },
          {
            path: 'feedback',
            name: 'BrandSensation-feedback',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Feedback/index'),
            meta: { pathId: 2, title: '近期差评' }
          },
          {
            path: 'compare',
            name: 'BrandSensation-compare',
            component: () => import(/* webpackChunkName: "BrandSensation" */ '@/views/BrandSensation/Feedback/index'),
            meta: { pathId: 2, title: '品牌健康度对比' }
          }
        ]
      },
      /**
       * 品牌监控
       */
      {
        path: 'brandMonitor',
        component: () => import(/* webpackChunkName: "BrandMonitor" */ '@/views/BrandMonitor/index'),
        name: 'BrandMonitor',
        meta: { title: '品牌监控' },
        children: [
          {
            path: 'overview',
            name: 'BrandMonitor-overview',
            component: () => import(/* webpackChunkName: "BrandMonitor" */ '@/views/BrandMonitor/Overview/index'),
            meta: { pathId: 1, title: '监控概况' }
          },
          {
            path: 'channel',
            name: 'BrandMonitor-channel',
            component: () => import(/* webpackChunkName: "BrandMonitor" */ '@/views/BrandMonitor/Channel/index'),
            meta: { pathId: 2, title: '渠道监控' }
          },
          {
            path: 'price',
            name: 'BrandMonitor-price',
            component: () => import(/* webpackChunkName: "BrandMonitor" */ '@/views/BrandMonitor/Price/index'),
            meta: { pathId: 2, title: '价格违规监控' }
          },
          {
            path: 'product',
            name: 'BrandMonitor-product',
            component: () => import(/* webpackChunkName: "BrandMonitor" */ '@/views/BrandMonitor/Product/index'),
            meta: { pathId: 2, title: '宝贝监控' }
          }
        ]
      },
      /**
       * 品牌设置
       */
      {
        path: 'brandSetting',
        component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/index'),
        name: 'BrandSetting',
        meta: { title: '品牌设置' },
        children: [
          {
            path: 'brand',
            name: 'BrandSetting-brand',
            component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/Brand/index'),
            meta: { pathId: 1, title: '品牌监控列表' }
          },
          {
            path: 'keyword',
            name: 'BrandSetting-keyword',
            component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/Keyword/index'),
            meta: { pathId: 2, title: '关键词监控设置' }
          },
          {
            path: 'price',
            name: 'BrandSetting-price',
            component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/Price/index'),
            meta: { pathId: 2, title: '价格监控设置' }
          },
          {
            path: 'authority',
            name: 'BrandSetting-authority',
            component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/Authority/index'),
            meta: { pathId: 2, title: '授权监控设置' }
          },
          {
            path: 'warn',
            name: 'BrandSetting-warn',
            component: () => import(/* webpackChunkName: "BrandSetting" */ '@/views/BrandSetting/Warn/index'),
            meta: { pathId: 2, title: '告警监控' }
          }
        ]
      },
      {
        path: '/',
        redirect: { name: 'BrandAnalysis-market' }
      }
    ]
  },
  // 重定向
  {
    path: '/redirect',
    component: () => import(/* webpackChunkName: "home" */ '@/views/layout/index'),
    hidden: true,
    children: [
      {
        path: '/redirect/:path*',
        component: () => import('@/views/redirect/index')
      }
    ]
  },
  // 登录页
  {
    name: 'login',
    path: '/login',
    component: () => import(/* webpackChunkName: "login" */ '@/views/login/index'),
    hidden: true
  },
  // 忘记密码页
  {
    name: 'forget',
    path: '/forget',
    component: () => import(/* webpackChunkName: "login" */ '@/views/forget/index'),
    hidden: true
  },
  // 404
  {
    path: '*',
    name: '404',
    component: () => import(/* webpackChunkName: "404" */ '@/views/errorPage/404')
  }
];
